package com.lqian.service.emp;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.lqian.pojo.Depart;
import com.lqian.pojo.Employee;
import com.lqian.utils.PageUtil;

public interface IEmployeeService {
	
	
	List<Employee> getAllEmployee(); 
	
	Employee login(String ename,String epass);
	
	
	/**
	 * �޸�����
	 */
	void updatePwd(String epass,Integer eid);
	
	
	/**
	 *select myInfo
	 */
	Employee getEmployeeWithDept(Integer eideid);
	
	
	/**
	 * 查询所以的记录行条数
	 */
	Integer count(); 
	
	/**
	 * 全查询显示员工信息
	 */
	List<Employee> getEmployeeDept(); 


	List<Employee> findAllEmpByPage(PageUtil page);
	
	/**
	 * 通过eid查找员工
	 * @param eid
	 * @return
	 */
	Map<String, Object> findUserByEid(Integer eid);
	
	/**
	 * 更新用户
	 * @param emp
	 * @return
	 */
	Integer updateUser(Employee emp);
	
	
	/**
	 * 逻辑删除用户
	 * @param did
	 * @return
	 */
	Integer deleteEmployee(Integer eid);

	/**
	 * 逻辑恢复用户
	 * @param did
	 * @return
	 */
	Integer resEmployee(Integer eid);
	
	
	/**
	 * 添加用户
	 * @param employee
	 * @return
	 */
	Integer addEmployee(Employee employee);

}
